GtkMenuTrackerItem: fix submenu visibility flag
authorRyan Lortie <desrt@desrt.ca>
Wed, 20 Aug 2014 19:43:09 +0000 (15:43 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sun, 14 Dec 2014 23:34:52 +0000 (18:34 -0500)
commit8e731560ffa5370e7376689441600de0e084917e
tree908dc1a89b3f9c5bdb7b9929062dcfc692034b28
parent5c365b67c10f486bb9ea8cbe26de0da364be348f
GtkMenuTrackerItem: fix submenu visibility flag

We were only properly setting the "is-visible" flag to TRUE for menu
items with associated actions and not (for example) on submenus.

This was fine because the code for building GtkMenus from models
(correctly) assumed that submenus should always be visible and never
checked the property.

This is not true for the Mac OS code, which actually checked the
property and found it to be false for submenus.

Initialise the property to TRUE so that we get the correct value
reported for items that don't have actions.

https://bugzilla.gnome.org/show_bug.cgi?id=735122
gtk/gtkmenutrackeritem.c